package com.app.service;

import com.app.pojo.PublicAnnouncement;
import com.app.util.Result;
import com.app.vo.AdminPublicAnnouncementVo;
import com.app.vo.PublicAnnouncementVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 信息公告 服务类
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
public interface IPublicAnnouncementService extends IService<PublicAnnouncement> {


    PublicAnnouncementVo getPublicAnnouncementList(Integer page, Integer limit,String type);

    PublicAnnouncement getPublicAnnouncementById(Integer id);

    /**
     * admin 列表查询
     * @param type
     * @param page
     * @param limit
     * @param title
     * @return
     */
    Result<AdminPublicAnnouncementVo> noticeList(Integer type, Integer page, Integer limit, String title);

    /**
     * admin新增修改
     *
     * @param publicAnnouncement
     * @param userId
     * @return
     */
    Result<Boolean> addAndUpdate(PublicAnnouncement publicAnnouncement, Integer userId);
}
